Fix swapped lat/lon in KML read.
authorrobertl <robertl>
Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)
committerrobertl <robertl>
Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)
kml.c

diff --git a/kml.c b/kml.c
index 7d7f8203ee483cf0e06950c4fb9f52064ec29bbd..e7285c721d17634045f90e637ebdaeee9c65fc9e 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -245,7 +245,7 @@ void wpt_coord(const char *args, const char **attrv)
        int n = 0;
        double lat, lon, alt;
        // Alt is actually optional. 
-       n = sscanf(args, "%lf,%lf,%lf", &lat, &lon, &alt);
+       n = sscanf(args, "%lf,%lf,%lf", &lon, &lat, &alt);
        if (n >= 2) {
                wpt_tmp->latitude = lat;
                wpt_tmp->longitude = lon;